/*
 * @Author: fah 1742484532@qq.com
 * @Date: 2024-09-13 14:13:14
 * @LastEditors: fah 1742484532@qq.com
 * @LastEditTime: 2024-09-13 14:50:38
 * @FilePath: \livetree-admin-server\src\utils\index.ts
 * @Description: 指飞部-企业数字化管理系统
 * @version: 1.0
 */
import { RESPONSE_CODE, RESPONSE_MSG } from './enums/index';

/**
 * @description: 统一返回体
 * @author: 白雾茫茫丶
 */
export const responseMessage = (
  data,
  msg = RESPONSE_MSG.SUCCESS,
  code = RESPONSE_CODE.SUCCESS,
) => {
  return { data, msg, code };
};
